package com.zan.pattern.command;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author Zan
 * @Create 2024/4/27 9:49
 * @Description : 订单类
 * @ClassName: Order
 */
public class Order {

    // 餐桌号码
    private int diningTable;

    // 所下的餐品及份数
    private Map<String, Integer> foodDic = new HashMap<>();

    public int getDiningTable() {
        return diningTable;
    }

    public void setDiningTable(int diningTable) {
        this.diningTable = diningTable;
    }

    public Map<String, Integer> getFood() {
        return foodDic;
    }

    public void setFood(String name, int num) {
        foodDic.put(name, num);
    }
}
